package org.example.springcloud.controller;


import org.example.springcloud.bean.XmlBean;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/xml")
public class XmlController {

    @RequestMapping("/getxml")
    public XmlBean test() {
        XmlBean xmlBean = new XmlBean();
        xmlBean.setName("hutao");
        xmlBean.setAge(18);
        xmlBean.setAddress("beijing");
        return xmlBean;
    }


}
